Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / Application-Defined Functions
/


MyStandardIn

Reads text input. This is how you would define your input function if you were to name it MyStandardIn:

SInt32 MyStandardIn (JMSessionRef session,
                                         char* buffer, 
                                         SInt32 maxBufferLength);
session
The session to receive the text input.
buffer
The buffer to hold the input.
maxBufferLength
The maximum length allowed by the buffer.
function result
The number of characters actually read (up to maxBufferLength) or -1 if an error occurred.
DISCUSSION
When invoking the Java runtime environment using JMOpenSession, you must designate a callback function to direct any console input to the session.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997